package com.zhuiyun.project.api.appusermessage.controller;

import com.zhuiyun.project.api.appusermessage.service.impl.DiseaseServiceImpl;
import com.zhuiyun.project.common.response.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName DiseaseController
 * @Description TODO
 * @Author Root
 * @Date 2023/6/28 14:59
 **/
@RestController
@RequestMapping("disease")
@CrossOrigin
public class DiseaseController {
    @Autowired
    DiseaseServiceImpl diseaseService;
    /**
    * @Author Root
    * @Description 通过id查询病种
    * @Date 2023/6/28 15:02
    * @Return com.zhuiyun.project.common.response.CommonResult
    * @param dicId
    */
    @GetMapping("/getDiseaseById")
    public CommonResult getDiseaseById( Integer dicId){
        return diseaseService.getDiseaseById(dicId);
    }
}
